projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32b9c7d
)
Revert "Fix `speedbar-directory-buttons' when using Tramp"
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 31 Jul 2021 12:54:52 +0000
(14:54 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 31 Jul 2021 12:54:52 +0000
(14:54 +0200)
This reverts commit
5afad3918bc8816b74e8efcff9cc441785446aa6
.
This patch can't possibly be correct, and it breaks the stated interface.
lisp/speedbar.el
patch
|
blob
|
history
diff --git
a/lisp/speedbar.el
b/lisp/speedbar.el
index 4666026f3571d1acb0f8043abe4a3815d209f581..34fbec9c2189f3989469ac005a8423c60cd854b9 100644
(file)
--- a/
lisp/speedbar.el
+++ b/
lisp/speedbar.el
@@
-1822,9
+1822,9
@@
matches the user directory ~, then it is replaced with a ~.
INDEX is not used, but is required by the caller."
(let* ((tilde (expand-file-name "~/"))
(dd (expand-file-name directory))
- (junk (string-
prefix-p "~/"
dd))
+ (junk (string-
match (regexp-quote tilde)
dd))
(displayme (if junk
- (concat "~/" (substring dd
2 nil
))
+ (concat "~/" (substring dd
(match-end 0)
))
dd))
(p (point)))
(if (string-match "^~[/\\]?\\'" displayme) (setq displayme tilde))